package com.String;

/*
字符串定义格式
*/
public class Demo01 {

    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = new String();
        String s3 = new String("abc");
        char[] s = {'a', 'b', 'c'};
        String s4 = new String(s);
        byte[] sb = {97, 98, 99};
        String s5 = new String(sb);
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);
        System.out.println(s5);
    }

}
